tiles = {
         front = { "data/sprites/star/stand_front.bmp" },
         back  = { "data/sprites/star/stand_back.bmp" },
         left  = { "data/sprites/star/stand_left.bmp" },
         right  = { "data/sprites/star/stand_right.bmp" },
         walk_front = {
                       "data/sprites/star/walk_front_1.bmp",
                       "data/sprites/star/walk_front_2.bmp",
                       "data/sprites/star/walk_front_3.bmp",
                       "data/sprites/star/walk_front_4.bmp"
                      },
         walk_back  = {
                       "data/sprites/star/walk_away_1.bmp",
                       "data/sprites/star/walk_away_2.bmp",
                       "data/sprites/star/walk_away_3.bmp",
                       "data/sprites/star/walk_away_4.bmp"
                      },
         walk_left  = {
                       "data/sprites/star/walk_left_1.bmp",
                       "data/sprites/star/walk_left_2.bmp",
                       "data/sprites/star/walk_left_3.bmp",
                       "data/sprites/star/walk_left_4.bmp"
                      },
         walk_right  = {
                       "data/sprites/star/walk_right_1.bmp",
                       "data/sprites/star/walk_right_2.bmp",
                       "data/sprites/star/walk_right_3.bmp",
                       "data/sprites/star/walk_right_4.bmp"
                      }
        }

function onLoad (spriteID, x, y)
	
	if setName(spriteID, "Star") == true then
		print("Name set successfully")
	else
		print("Failure setting name")
	end
	
	if moveTo(spriteID, 3, 2) == true then
		print("sprite successfully moved")
	else
		print("error moving sprite")
	end
	
end


function arriveAt (spriteID, x, y)

	if x == 3 and y == 2 then
		if faceFront(spriteID) == true then
			print("sprite face front successfully")
		else
			print("error facing sprite to the front")
		end
	end

end
